<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>

</body>
<script src="../underscore1.9.1.js"></script>
<script>
    var array = [12, 50, 2, 4, 6, 13, 12];
    var lessThan10 = _.filter(array, function(elem) {
        return elem < 10;
    });
    console.log(lessThan10) // => lessThan10: [2,4,6]
</script>

</html>